@echo off
rem OBS FOR CAMZAM (Windows) - starts OBS Studio with the camera allowed to its browser sources, so that CamZam's
rem engine page (the CamZam camera source) can open the webcam. Nothing else changes in OBS. To go back: start OBS
rem the usual way.
set "OBSDIR=%ProgramFiles%\obs-studio\bin\64bit"
if not exist "%OBSDIR%\obs64.exe" (
  echo OBS Studio introuvable dans "%OBSDIR%".
  echo Installez OBS Studio depuis obsproject.com, puis relancez ce raccourci.
  pause
  exit /b 1
)
tasklist /FI "IMAGENAME eq obs64.exe" | find /I "obs64.exe" >nul
if not errorlevel 1 (
  echo OBS est deja ouvert. Fermez-le completement ^(icone pres de l'horloge : clic droit, Quitter^),
  echo puis relancez ce raccourci.
  pause
  exit /b 1
)
start "" /D "%OBSDIR%" "%OBSDIR%\obs64.exe" --enable-media-stream
